package com.liner.homework.second;

public class Animal {
    String name;
    String color;
    int age;


    public Animal(String name, String color, int age) {
        this.name = name;
        this.color = color;
        this.age = age;
    }

    void drink(){
        System.out.println(age + "岁的" + color+ name +"正在喝水...");
    }

    void eat(){
        System.out.println(age + "岁的" + color+ name +"正在吃饭...");
    }
}
